﻿<?xml version="1.0" encoding="utf-8"?>
<Window	x:Class="Revsoft.Wabbitcode.AvalonEditExtension.ChooseEncodingDialog"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        xmlns:avalonedit="http://icsharpcode.net/sharpdevelop/avalonedit"
	Title="Choose Encoding"
	Width="335"
	SizeToContent="Height"
	ResizeMode="NoResize"
	WindowStartupLocation="CenterOwner"
	Style="DialogWindowStyle">
	<StackPanel>
		<Label
			Margin="8"
			Content="Choose &amp;encoding:" />
		<ComboBox
			Name="encodingComboBox"
			Margin="16,0,8,8">
			<ComboBox.ItemTemplate>
				<DataTemplate>
					<TextBlock Text="{Binding DisplayName}"/>
				</DataTemplate>
			</ComboBox.ItemTemplate>
		</ComboBox>
        <UniformGrid
			Columns="2"
			Margin="4,4,10,10"
			HorizontalAlignment="Right">
            <Button
				Content="OK"
				Style="ButtonStyle"
				IsDefault="True"
				Click="okButton_Click" />
            <Button
				Content="Cancel"
				Style="ButtonStyle"
				IsCancel="True" />
        </UniformGrid>
    </StackPanel>
</Window>